<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <title>05_防抖节流-为什么要学习防抖节流</title>
        <style>
            div {
                width: 300px;
                height: 300px;
                border: 1px saddlebrown solid;
                font-size: 20px;
            }
        </style>
    </head>
    <body>
        <div>1</div>

        <script>
            var div = document.querySelector('div');

            div.onmousemove = function(){
                this.innerHTML++;
            }
        </script>
    </body>
</html>